package cn.ck;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
@EnableEurekaClient        //启动EnableEureka客户端
@EnableFeignClients        //开启Feign功能  Feign  http开源框架
@EnableCircuitBreaker    //hystrix 监控
public class CkApiApplication {

	@RequestMapping("/")
	public String greeting() {
		return "Hello World !";
	}


	public static void main(String[] args) {
		SpringApplication.run(CkApiApplication.class, args);
	}
}
